package com.wanboedu.service.Impl;

import com.wanboedu.dto.UserDTO;
import com.wanboedu.mapper.UserMapper;
import com.wanboedu.service.UserService;
import com.wanboedu.vo.UserVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;
    @Override
    public UserVO login(UserDTO userDTO) {
      UserVO userVO =  userMapper.login(userDTO);
        return userVO;
    }

    @Override
    public void update(UserDTO userDto) {
        userMapper.update(userDto);
    }
}
